// 用户配置当前小程序的环境变量
const { miniProgram } = wx.getAccountInfoSync()

const { envVersion } = miniProgram

let env = {
  baseUrl: 'http://47.121.182.69:8081'
}

switch (envVersion) {
  case 'develop':
    env.baseUrl = 'http://127.0.0.1:8081'
    break
  case 'trial':
    env.baseUrl = 'https://zhangyizhou.xyz/management'
    break
  case 'release':
    env.baseUrl = 'https://zhangyizhou.xyz/management'
    break
}

export { env }